package com.ssy.lingxi.marketing.service.feign;

import com.ssy.lingxi.common.response.Wrapper;
import com.ssy.lingxi.search.api.model.request.CommoditySkuRequest;
import com.ssy.lingxi.search.api.model.response.CommoditySkuResponse;

import java.util.List;
import java.util.Map;

/**
 *  feign搜索服务内部接口
 * @author ds
 * @date 2021/11/19
 * @version 2.0.0
 */
public interface ISearchFeignService {

    /**
     * 查询购物车单个商品数量[用于购买数校验]
     * @param shopId
     * @param memberId
     * @param memberRoleId
     * @param commoditySkuId
     * @return
     */
    Wrapper<Double> getPurchaseCommodityCount(Long shopId, Long memberId, Long memberRoleId, Long commoditySkuId);

    /**
     * 批量查询商城下的指定skus列表
     * @param commoditySkuRequest
     * @return
     */
    Wrapper<List<CommoditySkuResponse>> getCommoditySkuMap(CommoditySkuRequest commoditySkuRequest);

    /**
     * 批量查询商城下的指定skus列表
     * @param shopId
     * @param skuIdInList
     * @return
     */
    Map<Long,CommoditySkuResponse> getCommoditySkuMap(Long shopId, List<Long> skuIdInList, Long loginMemberId, Long loginRoleId,String provinceCode,String cityCode);

}
